package me.spring.cloud.common.components.oss.cloud.exception.code;

import me.spring.cloud.common.components.util.enums.CodedEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 文件上传cod
 * @author: luffy
 * @create: 2018-09-21 08:40
 **/
@Getter
@AllArgsConstructor
public enum OssCode implements CodedEnum<String> {
  FILE_UPLOAD_FAILED("FU10000", "文件上传失败"),
  FILE_UPDATE_FAILED("FU10001", "文件修改失败"),
  OSS_RESOURCE_ERROR("FU10002", "oss连接信息错误"),

  OVERRIDE_GET_OSS_SOURCEINFO("FU10003",
      "未找到DataSourceReadStrategy类中注册的Bean；没有实现抽象类DataSourceReadStrategy的抽象方法getDataSourceInfo，在使用动态数据源时该方法用于获取动态数据源的信息"),
  ;
  private String code;
  private String desc;
}
